package com.example.myapplication.anr;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.example.myapplication.base.BaseActivity;
import com.example.myapplication.R;

public class ANRActivity extends BaseActivity {


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_anr_test);

        TextView textView = findViewById(R.id.textView);
        textView.setOnClickListener(this::onClick);
    }

    private void onClick(View view) {

        while(true) {

        }

    }

    @Override
    public void onTrimMemory(int level) {

    }

}
